/**
 * 首页模块接口列表
 */

import base from './base'; // 导入接口域名列表
import axios from '@/request/http'; // 导入http中创建的axios实例
import qs from 'qs'; // 根据需求是否导入qs模块

const home = {
    // 新闻列表
    // articleList () {
    //     return axios.get(`${base.sq}/topics`);
    // },
    // 新闻详情,演示
    // articleDetail (id, params) {
    //     return axios.get(`${base.sq}/topic/${id}`, {
    //         params: params
    //     });
    // },
    // post提交
    // login (params) {
    //     return axios.post(`${base.sq}/accesstoken`, qs.stringify(params));
    // },
    bannerList(){
        return axios.get(`${base.sq}GetBanner`);

    },
    noticeList(){
        return axios.get(`${base.sq}wap/home/Showlist`);
    },
    getsixData(){
        return axios.get(`${base.sq}WapSixData`);
    },
    historyMsg(limit,page,token){

        if(token != null){
            if(limit == 4){
                page = 1
                return axios.get(`${base.sq}HistoryMessage?page=`+page+`&token=`+token);
            }else{
                return axios.get(`${base.sq}HistoryMessage?page=`+page+`&token=`+token);
            }
        }else{
            if(limit == 4){
                page = 1
                return axios.get(`${base.sq}HistoryMessage?page=`+page);
            }else{
                return axios.get(`${base.sq}HistoryMessage?page=`+page);
            }
        }


    },
    bannerDetail(id){
        return axios.get(`${base.sq}BannerDetail?id=`+id);

    },
    zhineng(token){
        return axios.get(`${base.sq}zhineng?token=`+token);
    },
    niuxiong(token){
        return axios.get(`${base.sq}niuxiong?token=`+token);
    },
    serviceset(token,x){
        return axios.get(`${base.sq}serviceset?token=`+token+`&x=`+x);
    },
    HeightRemindList(token){
        return axios.get(`${base.sq}HeightRemindList?token=`+token);
    },
    GetPlatformCoin(token){
        return axios.get(`${base.sq}GetPlatformCoin?token=`+token);
    },
    HeightRemindAdd(token,id){
        return axios.get(`${base.sq}HeightRemindAdd?token=`+token+`&cu_id=`+id);
    },
    SearchCoin(token,title){
        return axios.get(`${base.sq}SearchCoin?token=`+token+`&title=`+title);
    },
    HeightRemindDel(token,id){
        return axios.get(`${base.sq}HeightRemindDel?token=`+token+`&id=`+id);
    },
    Clprice(token){
        return axios.get(`${base.sq}Clprice?token=`+token);

    },
    Cl(token){
        return axios.get(`${base.sq}Cl?token=`+token);

    },
    ClCurrency(token){
        return axios.get(`${base.sq}ClCurrency?token=`+token);
    },
    ClOrder(token,page){
        return axios.get(`${base.sq}ClOrder?token=`+token+`&page=`+page);
    },
    HeYueCurrency(token){
        return axios.get(`${base.sq}HeYueCurrency?token=`+token);

    },
    HeYueSet(token,id,time){
        return axios.get(`${base.sq}HeYueSet?token=`+token+`&cu_id=`+id+`&time=`+time);
    },
    BeiLiMindList(token){
        return axios.get(`${base.sq}BeiLiMindList?token=`+token);

    },
    BeiLiMindSet(params){
        return axios.post(`${base.sq}BeiLiMindSet`,qs.stringify(params));
    },
    BeiLiMindDel(params){
        return axios.get(`${base.sq}BeiLiMindDel`,{
            params: params
        });
    },
    CountMessage(params){
        return axios.get(`${base.sq}CountMessage`,{
            params: params
        });
    },
    GetMessage(params){
        return axios.get(`${base.sq}GetMessage`,{
            params: params
        });
    },
    GetStatement(params){
        return axios.get(`${base.sq}GetStatement`,{
            params: params
        });
    }





    // 其他接口…………
}

export default home;